package com.tizona.entity;

import com.tizona.entity.tarification.Accumulator;
import com.tizona.entity.tarification.Parameter;

import java.math.BigDecimal;
import java.util.*;

/**
 * Created by Vitaliy Kim.
 * Date: 23.08.2005
 * Time: 19:01:19
 */
public class Lc {
    /** identifier field */
    private Long lcNum;

    /** persistent field */
    private BigDecimal saldo;

    /** persistent field */
    private boolean deleted;

    /** persistent field */
    private Set <Se> ses = new HashSet <Se> ();

    /** persistent field */
    private Map <String, Parameter> lcProps = new Hashtable <String,Parameter>();

    /** persistent field */
    private Map <String, Accumulator> lcAccums = new Hashtable <String,com.tizona.entity.tarification.Accumulator>();

    /** persistent field */
    private HashSet<Payment> pays = new HashSet<Payment>();


    /** persistent field */
    private Invoice invoice;

    public Long getLcNum() {
        return lcNum;
    }

    public Set <Se> getSes() {
        return ses;
    }

    /*Default Constructor*/

    public Lc() {
    }

    /*Constructor*/
    public Lc(Long lcNum, BigDecimal saldo) {
        this.lcNum = lcNum;
        this.saldo = saldo;
    }

    public void setSes(Set <Se> ses) {
        this.ses = ses;
    }

    public void setLcNum(Long lcNum) {
        this.lcNum = lcNum;
    }

    public BigDecimal getSaldo() {
        return saldo;
    }

    public void setSaldo(BigDecimal saldo) {
        this.saldo = saldo;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public Map<String, Parameter> getLcProps() {
        return lcProps;
    }

    public void setLcProps(Map<String, com.tizona.entity.tarification.Parameter> lcProps) {
        this.lcProps = lcProps;
    }

    public Map<String, Accumulator> getLcAccum() {
        return lcAccums;
    }

    public void setLcAccum(Map<String, Accumulator> lcAccum) {
        this.lcAccums = lcAccum;
    }

    public HashSet<Payment> getPays() {
        return pays;
    }

    public void setPays(HashSet<Payment> pays) {
        this.pays = pays;
    }

    public Invoice getInvoice() {
        return invoice;
    }

    public void setInvoice(Invoice invoice) {
        this.invoice = invoice;
    }

    public com.tizona.entity.tarification.Parameter getParameter(String s)
    {
        return this.getLcProps().get(s);
    }

}
